<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/dataMonitor/updateDataPage.js">
	
</script>
<link href="<%=request.getContextPath()%>/css/blockStyle.css"
	rel="stylesheet">
<%
	java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

	java.util.Date currentTime = new java.util.Date();//得到当前系统时间

	String date = formatter.format(currentTime); //将日期时间格式化
%>
<style type="text/css">
#progress_info table td{
	padding:8px;
}
#progress_info table{
	color: white;
	margin: 0 auto;
	border: 1px solid #9f9;
}
#progress_info>p:last-child{
	font-size:22px;
	animation:light 5s infinite;
	-moz-animation:light 5s infinite;
	-webkit-animation:light 5s infinite;
	-o-animation:light 5s infinite;
}
#progress_info,#progress_info>p{
	transition:all 1s;
    -webkit-transition:all 1s;
}
.notice-span{
	font-size: 18px;
	animation:light-red 1s infinite;
	-moz-animation:light-red 1s infinite;
	-webkit-animation:light-red 1s infinite;
	-o-animation:light-red 1s infinite;
}

@keyframes light{
	0%{text-shadow:#59b8dc 1px 0 0,#59b8dc 0 1px 0,#59b8dc -1px 0 0,#59b8dc 0 -1px 0;}
	30%{text-shadow:transparent 1px 0 0,transparent 0 1px 0,transparent -1px 0 0,transparent 0 -1px 0;}
	100%{text-shadow:#59b8dc 1px 0 0,#59b8dc 0 1px 0,#59b8dc -1px 0 0,#59b8dc 0 -1px 0;}}
@-webkit-keyframes light{
	0%{text-shadow:#59b8dc 1px 0 0,#59b8dc 0 1px 0,#59b8dc -1px 0 0,#59b8dc 0 -1px 0;}
	30%{text-shadow:transparent 1px 0 0,transparent 0 1px 0,transparent -1px 0 0,transparent 0 -1px 0;}
	100%{text-shadow:#59b8dc 1px 0 0,#59b8dc 0 1px 0,#59b8dc -1px 0 0,#59b8dc 0 -1px 0;}}
@-moz-keyframes light{
	0%{text-shadow:#59b8dc 1px 0 0,#59b8dc 0 1px 0,#59b8dc -1px 0 0,#59b8dc 0 -1px 0;}
	30%{text-shadow:transparent 1px 0 0,transparent 0 1px 0,transparent -1px 0 0,transparent 0 -1px 0;}
	100%{text-shadow:#59b8dc 1px 0 0,#59b8dc 0 1px 0,#59b8dc -1px 0 0,#59b8dc 0 -1px 0;}}
}

@keyframes light-red{
	0%{text-shadow:0 0 0 red;}
	20%{text-shadow:0 0 2px red;}
	30%{text-shadow:0 0 0 red;}
	40%{text-shadow:0 0 2px red;}
	50%{text-shadow:0 0 0 red;}
	60%{text-shadow:0 0 2px blue;}
	70%{text-shadow:0 0 0 blue;}
	80%{text-shadow:0 0 2px blue;}
	90%{text-shadow:0 0 0 blue;}
	100%{text-shadow:0 0 2px blue;}}
@-webkit-keyframes light-red{
	0%{text-shadow:0 0 0 red;}
	20%{text-shadow:0 0 2px red;}
	30%{text-shadow:0 0 0 red;}
	40%{text-shadow:0 0 2px red;}
	50%{text-shadow:0 0 0 red;}
	60%{text-shadow:0 0 2px blue;}
	70%{text-shadow:0 0 0 blue;}
	80%{text-shadow:0 0 2px blue;}
	90%{text-shadow:0 0 0 blue;}
	100%{text-shadow:0 0 2px blue;}}
	
#monitorProgress{
	text-align:center;
	position: fixed;
	padding-top:20px;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background: rgba(0,0,0,.2);
	text-shadow:0 1px 0 rgba(0, 0, 0, 0.15);
	/* opacity:.2; */
	color: white;
	display: none;
	z-index: 1080;
}

#infoDiv::-webkit-scrollbar {
	width: 5px;
}
#infoDiv::-webkit-scrollbar-track {
	background-color: #eaeaea;
}
#infoDiv::-webkit-scrollbar-thumb {
	background-color:rgba(96,191,25,.8);
	border-radius:5px;
}
#infoDiv::-webkit-scrollbar-thumb:hover {
	background-color: #aaa;
}
#infoDiv::-webkit-scrollbar-thumb:active{
	background-color:#333;
}
</style>
</head>
<body>
	<div class="container blockStyle" id="con">
		<div class="row">
			<!-- 手动触发费用大类计算 -->
			<div id="exe_div" class="col-md-6">
				<h4 class="title">
					<i class="fa fa-archive"></i>&nbsp;费用大类计算
				</h4>
				<div class="content" style="height: 210px">
					<h4>
						<i class="fa fa-archive"></i>&nbsp;费用大类计算
					</h4>
					<div class="row" id="date_type" style="margin: 5px;">
						<span style="width: 60px; float: left; margin-top: 5px; font-weight: bold;">日期类型：</span>
						<!-- <select id="date_type" class="form-control" style="width:100px;margin: 5px; float: left;">
							<option value="pushDate">导入日期</option>
							<option value="outDate">出院日期</option>
							</select> -->
						<input type="radio" checked="checked" name="dateType" value="pushDate"  />&nbsp;导入日期&nbsp;&nbsp;
						<input type="radio" name="dateType"value="outDate" />&nbsp;出院日期
					</div>
					<div class="row" style="margin-left: 5px;">
						<span
							style="width: 60px; float: left; margin-top: 15px; font-weight: bold;">开始日期：</span>
						<input id="exe_date_from" class="form-control date-from"
							style="width: 100px; margin: 5px; float: left;" value=<%=date%> />
						<span
							style="width: 60px; float: left; margin-top: 15px; font-weight: bold;">结束日期：</span>
						<input id="exe_date_to" class="form-control date-to"
							style="width: 100px; margin: 5px; float: left;" value=<%=date%> />
						<button class="btn btn-primary"
							style="margin-top: 4px; margin-left: 10px;" id="sum_expense_id">计算</button>
					</div>
					<div class="row zhujie" style="margin:13px 10px 10px 10px">
						<span>注：此日期类型可选<br/>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;此功能用于计算并更新费用大类表中五大类费用等信息<br/>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;对应的定时任务将在每天凌晨5点对前一天导入的数据执行更新</span>
					</div>
				</div>
			</div>

			<!-- 手动触发手术/操作更新 -->
			<div id="oper_div" class="col-md-6">
				<h4 class="title">
					<i class="fa fa-archive"></i>&nbsp;手术/操作更新
				</h4>
				<div class="content" style="height: 210px">
					<h4>
						<i class="fa fa-archive"></i>&nbsp;手术/操作更新
					</h4>
					<div class="row" style="margin-left: 5px;">
						<span
							style="width: 60px; float: left; margin-top: 15px; font-weight: bold;">开始日期：</span>
						<input id="oper_date_from" class="form-control date-from"
							style="width: 100px; margin: 5px; float: left;" value=<%=date%> />
						<span
							style="width: 60px; float: left; margin-top: 15px; font-weight: bold;">结束日期：</span>
						<input id="oper_date_to" class="form-control date-to"
							style="width: 100px; margin: 5px; float: left;" value=<%=date%> />
						<button class="btn btn-primary"
							style="margin-top: 4px; margin-left: 10px;" id="oper_id">更新</button>
					</div>
					<div class="row zhujie" style="margin:40px 10px 10px 10px">
						<span>注：此日期为首页推送日期<br/>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;此功能用于更新手术信息表中的“手术/操作”字段<br/>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;对应的定时任务将在每天凌晨6点对前一天推送的数据执行更新</span>
					</div>
				</div>
			</div>
		</div>

		<div class="row">
			<!-- 未入组原因更新 -->
			<div id="rea_div" class="col-md-6">
				<h4 class="title">
					<i class="fa fa-flag"></i>&nbsp;未入组原因更新
				</h4>
				<div class="content" style="height: 210px">
					<h4>
						<i class="fa fa-archive"></i>&nbsp;未入组原因更新
					</h4>
					<div class="row" style="margin-left: 5px;">
						<span
							style="width: 60px; float: left; margin-top: 15px; font-weight: bold;">开始日期：</span>
						<input id="rea_date_from" class="form-control date-from"
							style="width: 100px; margin: 5px; float: left;" value=<%=date%> />
						<span
							style="width: 60px; float: left; margin-top: 15px; font-weight: bold;">结束日期：</span>
						<input id="rea_date_to" class="form-control date-to"
							style="width: 100px; margin: 5px; float: left;" value=<%=date%> />
						<button id="rea_id" class="btn btn-primary"
							style="margin-top: 4px; margin-left: 10px;"
							onclick="upDateNotInReason()">更新原因</button>
					</div>
					<div class="row zhujie" style="margin:57px 10px 10px 10px">
						<span>注：此日期为出院日期<br/>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;此功能用于当未入组原因判断的规则有变动时执行更新
						</span>
					</div>
				</div>
				<div id="percentbar" class="progress"
					style="width: 100%; float: left; cursor: point; display: none;">
					<div id="percent"
						class="progress-bar progress-bar-info progress-bar-striped"
						role="progressbar" aria-valuemin="0" aria-valuemax="100"></div>
				</div>
			</div>
			<div id="advice_div" class="col-md-6" style="display: none;">
				<h4 class="title">
					<i class="fa fa-archive"></i>&nbsp;医嘱明细数据抽取
				</h4>
				<div class="content" style="height: 210px">
					<h4>
						<i class="fa fa-archive"></i>&nbsp;医嘱明细数据抽取
					</h4>
					<div class="row" style="margin-left: 5px;">
						<span style="width: 60px; float: left; margin-top: 10px; font-weight: bold;">抽取类型：</span>
						<select id="get_advice_type" class="select " style="height: 30px;">
						<option value="out_date">出院日期</option>
						<option value="mr_id">病人ID</option>
						 </select>
					</div>
					<div class="row" style="margin-left: 5px;">
					   <div id="out_date_type">
					   		<span
							style="width: 60px; float: left; margin-top: 15px; font-weight: bold;">开始日期：</span>
						<input id="advice_date_from" class="form-control date-from"
							style="width: 100px; margin: 5px; float: left;" value=<%=date%> />
						<span
							style="width: 60px; float: left; margin-top: 15px; font-weight: bold;">结束日期：</span>
						<input id="advice_date_to" class="form-control date-to"
							style="width: 100px; margin: 5px; float: left;" value=<%=date%> />
					   </div>
					     <div id="mr_id_type" style="display:none;">
					     	<span
							style="width: 60px; float: left; margin-top: 15px; font-weight: bold;">病人ID：</span>
						<input id="mr_id" class="form-control"
							style="width: 100px; margin: 5px; float: left;"  />
					     </div>
						<button class="btn btn-primary"
							style="margin-top: 4px; margin-left: 10px;" id="get_advice_id">抽取</button>
					</div>				    			
					<div class="row zhujie" style="margin:17px 10px 10px 10px">
						<span>注：此日期为首页出院日期<br/>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;病人ID为首页主键<br/></span>
					</div>
				</div>
			</div>
			
			<div id="speccode_id" class="col-md-6" style="display: ;">
				<h4 class="title">
					<i class="fa fa-archive"></i>&nbsp;科室，病区，医师特殊字符
				</h4>
				<div class="content" style="height: 210px">
					<h4>
						<i class="fa fa-archive"></i>&nbsp;科室，病区，医师特殊字符
					</h4>
					 <div class="row" style="margin-left: 5px;">
					   	 <button class="btn btn-primary" style="margin-top: 4px; margin-left: 10px;" id="get_speccode_id">处理</button>
					</div>			    			
					<div class="row zhujie" style="margin:35px 10px 10px 10px">
						<span>注：处理编码特殊字符<br/></span>
						<span>将 <label>[`~!@#$%^&*()+=|{}:;~！@#￥%……&*（）——+|{}【】‘；：”“’。，、？.<>/?]|''|\]|\[</label> 这些特殊字符替换成<label> - </label>  </span>
					</div>
				</div>
			</div>
		</div>
		
		
		<div class="row">
			<!-- 医师编码同步 -->
			<div id="docCodeUpdate" class="col-md-6">
				<h4 class="title">
					<i class="fa fa-flag"></i>&nbsp;医师编码同步
				</h4>
				<div class="content" style="height: 210px">
					<h4>
						<i class="fa fa-archive"></i>&nbsp;医师编码同步
					</h4>
					<div class="row" style="margin-left: 5px;">
						<span style="width: 60px; float: left; margin-top: 15px; font-weight: bold;">开始日期：</span>
						<input id="docDateFrom" class="form-control date-from"
							style="width: 100px; margin: 5px; float: left;" value=<%=date%> />
						<span style="width: 60px; float: left; margin-top: 15px; font-weight: bold;">结束日期：</span>
						<input id="docDateTo" class="form-control date-to"
							style="width: 100px; margin: 5px; float: left;" value=<%=date%> />
						<button class="btn btn-primary" style="margin-top: 4px; margin-left: 10px;" onclick="findCaseCntDocCodeIsNull()">查看</button>
						<button id="updateDocCode" class="btn btn-primary" style="margin-top: 4px; margin-left: 10px;">更新</button>
					</div>
					<div class="row zhujie" style="margin-left: 10px; margin-bottom: 10px;margin-right: 10px;margin-top: 25px">
						<!-- <span>注：此日期为出院日期<br/>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;此功能用于当未入组原因判断的规则有变动时执行更新
						</span> -->
						<label>注:</label>
						<ol>
						  <li>该功能用于将首页中编码为空的医师信息同步到医师表</li>
						  <li>查看按钮可以看到所选时间段内各医师字段编码缺失情况(有描述无编码情况)，按月份统计</li>
						</ol>
					</div>
				</div>
				<div id="percentbar" class="progress"
					style="width: 100%; float: left; cursor: point; display: none;">
					<div id="percent"
						class="progress-bar progress-bar-info progress-bar-striped"
						role="progressbar" aria-valuemin="0" aria-valuemax="100"></div>
				</div>
			</div>
		</div>
</body>
</html>